﻿using System;

using Ranet.AgOlap.Core.MetadataDescription;

namespace Galaktika.BI.Silverlight.Controls.General.Tree
{
    public class CubeTreeNode : CustomTreeNode
    {
        CubeDefInfo m_Info = null;
        public CubeDefInfo Info
        {
            get {
                return m_Info;
            }
        }

        public CubeTreeNode(CubeDefInfo info)
        {
            if (info == null)
                throw new ArgumentNullException("info");
            
            m_Info = info;
            Text = info.Caption;

            Icon = UriResources.Images.Cube16;
        }
    }
}
